import request from '/@/utils/request';

// 职务列表
export function DutiesGetPagedList(params?: object) {
	return request({
		url: '/api/Duties/GetPagedList',
		params,
	});
}

// 新增职务
export function DutiesCreate(data: any) {
	return request({
		url: 'api/Duties/Create',
		method: 'post',
		data,
	});
}

// 编辑职务
export function DutiesUpdate(data: any, id: string) {
	return request({
		url: `api/Duties/Update/${id}`,
		method: 'put',
		data,
	});
}

// 删除职务
export function DutiesDelete(id: string) {
	return request({
		url: `api/Duties/Delete/${id}`,
		method: 'delete',
	});
}
